package com.zlll.winner.business.service.mall;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zlll.winner.business.model.mall.MallGoodsDetails;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 积分商品
 服务类
 * </p>
 *
 * @author qsx
 * @since 2019-10-08
 */
public interface IMallGoodsDetailsService extends IService<MallGoodsDetails> {
    MallGoodsDetails saveMallGoodsDetails(MallGoodsDetails mallGoodsDetails);
    IPage<MallGoodsDetails> getMallGoodsDetails(String goodsName,Integer pageSize,Integer pageNo);

    MallGoodsDetails editMallGoodsDetails(MallGoodsDetails mallGoodsDetails);

    Boolean deleteById(Long id,Long userId);

    /**
     * 获取发布商品列表
     * @param goodsName
     * @param pageSize
     * @param pageNo
     * @return
     */
    IPage<MallGoodsDetails> getReleaseMallGoodsDetails(String goodsName,Integer pageSize,Integer pageNo);

    /**
     * 设置上架状态
     * @param goodsId
     * @return
     */
    Boolean setPutaway(Long goodsId);
}
